package com.dashu.base.enums.school.excel;

public enum ExcelFileType {
    XLS("xls"),
    XLSX("xlsx");
    public String name;

    ExcelFileType(String name) {
        this.name = name;
    }

    public static ExcelFileType getExcelFileType(String name) {
        switch (name) {
            case "xls":
                return XLS;
            case "xlsx":
                return XLSX;
        }
        return null;
    }
}
